package com.maingel.showcase.service.impl;

import com.maingel.showcase.dao.IUserService;
import com.maingel.showcase.entity.User;
import com.maingel.showcase.service.ILoginService;

import retrofit.RestAdapter;

public class LoginServiceImpl implements ILoginService {
    public User login(String username, String password) {
        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint("http://192.168.1.105:8080/showcase")
                .build();
        return restAdapter.create(IUserService.class).login(username, password);
    }
}
